﻿@using LessBoard.Models
@model Less.DAL.Records.ConfigSettingRecord
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit </h2>
<section id="main" class="column">
    <article class="module width_full">
        <header>
            <h3>Create a New Configuration Setting</h3>
        </header>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true, "Setting creation was unsuccessful. Please correct the errors and try again.")
            <div>
                <fieldset>
                    <legend>Setting Information</legend>
                    <div>
                        @Html.LabelFor(m => m.Code)
                        @Html.TextBoxFor(m => m.Code)
                        @Html.ValidationMessageFor(m => m.Code)
                    </div>
                    <div>
                        @Html.LabelFor(m => m.Value)
                        @Html.TextBoxFor(m => m.Value)
                        @Html.ValidationMessageFor(m => m.Value)
                    </div>
                    <p>
                        <input type="submit" value="Save" />
                    </p>
                </fieldset>
            </div>
        }
    </article>
</section>
